package com.vcredit.creditcat.dto.product;

import java.io.Serializable;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/** 
* 信用项提交参数
* @author 栗新玉
* @version 2017年5月25日 下午5:00:21
*/

public class CreditSubmitDto implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@NotEmpty(message="姓名不能为空")
	private String name;
	@NotEmpty(message="身份证不能为空")
	@Length(min=18)
	private String identityNo;
	@Length(min=11)
	@NotEmpty(message="手机号码不能为空")
	private String mobile;
	@NotEmpty(message="学历不能为空")
	private String education;
	@NotEmpty(message="婚姻不能为空")
	private String marriage;
	@NotEmpty(message="流水号不能为空")
	private String flowNo;
	@NotEmpty(message="信用项不能为空")
	private String paramStr;
	
	public CreditSubmitDto(){
		
	}
	
	public <T> CreditSubmitDto(String name,String identityNo,String mobile,
			String education,String marriage,String flowNo,String paramStr){
		this.name=name;
		this.identityNo=identityNo;
		this.mobile=mobile;
		this.education=education;
		this.marriage=marriage;
		this.flowNo=flowNo;
		this.paramStr=paramStr;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIdentityNo() {
		return identityNo;
	}
	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getEducation() {
		return education;
	}
	public void setEducation(String education) {
		this.education = education;
	}
	public String getMarriage() {
		return marriage;
	}
	public void setMarriage(String marriage) {
		this.marriage = marriage;
	}
	public String getFlowNo() {
		return flowNo;
	}
	public void setFlowNo(String flowNo) {
		this.flowNo = flowNo;
	}
	public String getParamStr() {
		return paramStr;
	}
	public void setParamStr(String paramStr) {
		this.paramStr = paramStr;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	

}
